package com.weidong.mybbs.config.frontmenu;

import java.util.List;

public class FrontMenu {
    /**
     * 菜单主键
     */
    private String key;
    /**
     * 权限key
     * 1.如果是根菜单并且具有子菜单，则不需要验证权限
     * 2.如果是根菜单并且没有子菜单，则需要校验权限
     */
    private String permissionKey;
    /**
     * 菜单标题
     */
    private String title;
    /**
     * 跳转uri
     */
    private String uri;
    /**
     * 图标
     */
    private String icon;
    /**
     * 父菜单key
     * 根菜单为0
     */
    private String parentKey;
    /**
     * 子菜单
     */
    private List<FrontMenu> subMenus;


    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getPermissionKey() {
        return permissionKey;
    }

    public void setPermissionKey(String permissionKey) {
        this.permissionKey = permissionKey;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getParentKey() {
        return parentKey;
    }

    public void setParentKey(String parentKey) {
        this.parentKey = parentKey;
    }

    public List<FrontMenu> getSubMenus() {
        return subMenus;
    }

    public void setSubMenus(List<FrontMenu> subMenus) {
        this.subMenus = subMenus;
    }
}
